package com.xbongbong.pay.platform.unionpay.config;

import lombok.Getter;
import lombok.Setter;

import java.security.KeyPair;
import java.security.KeyStore;
import java.security.cert.X509Certificate;

/**
 *
 * @author 魏荣杰
 * @date 2021/1/20 14:25
 * @since
 * @version
 */
@Setter
@Getter
public class UnionPayMeta {

    /**
     * 配置id
     */
    private String id;
    /**
     * 秘钥对
     */
    private KeyPair keyPair;
    /**
     * 证书序列号
     */
    private String serialNumber;

    /**
     * 证书容器，存储对商户请求报文签名私钥证书
     */
    private KeyStore keyStore;
    /**
     * 验证银联返回报文签名的公钥证书存储
     */
    private X509Certificate certificate;
    /**
     * 银联配置信息
     */
    private UnionPayConfig.Config config;

}
